/**
 * @FileName: User.java
 * @Package: com.springboot.bean
 * @author lig134
 * @created 2017/3/7 11:59
 * <p>
 * Copyright 2015 ziroom
 */
package com.springboot.bean;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * <p></p>
 * <p>
 * <PRE>
 * <BR>	修改记录
 * <BR>-----------------------------------------------
 * <BR>	修改日期			修改人			修改内容
 * </PRE>
 *
 * @author lig134
 * @version 1.0
 * @since 1.0
 */
@ConfigurationProperties(prefix = "user")
@Component
public class User {

    private String userName;

    private
    @Value("${age}")
    Integer age;

    private
    @Value("${remark}")
    String remark;

    private String address;

    private Address detailAddress;

    private List<Address> allAddress = new ArrayList<>();

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Address getDetailAddress() {
        return detailAddress;
    }

    public void setDetailAddress(Address detailAddress) {
        this.detailAddress = detailAddress;
    }

    public List<Address> getAllAddress() {
        return allAddress;
    }

    public void setAllAddress(List<Address> allAddress) {
        this.allAddress = allAddress;
    }
}